package com.personal;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication
//扫包优化
//@EnableAutoConfiguration
//@ComponentScan(basePackages = {"com.personal.aop","com.personal.config","com.personal.controller","com.personal.service","com.personal.error"})

@EnableAsync//开启异步调用
//@MapperScan(basePackages = {"com.personal.dao"})
@ServletComponentScan(basePackages = "com.personal.servlet")//扫描servlet
public class App {
	public static void main(String[] args) {
		SpringApplication.run(App.class, args);
	}
}
